package priv.yiyuan.example.design.chain.command01;

/**
 * 存款命令
 * <p>
 * 具体命令
 *
 * @author YiYuan
 * @data 2025/10/9
 * @apoNote
 */
public class DepositCommand implements Command {

    private Double amount;

    public DepositCommand(Double amount) {
        this.amount = amount;
    }

    @Override
    public void execute(Account account) {
        account.deposit(amount);
    }

}
